<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/**
 * 前台路由
 */

Route::get('/', function () {
    return view('home.index.welcome');
});
Route::get('/home', 'HomeController@index');
Route::any('home/login', 'AuthController@login');
Route::get('home/logout', 'AuthController@logout');
Route::any('home/register', 'AuthController@register');

//后台登录页
Route::any('admin/login', '\App\Http\Controllers\Admin\AuthController@login');